package com.osfw.activiti.domain;


import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.util.List;

/**
 * 流程模型信息
 */
@Data
@Accessors(chain = true)
public class ProcessMetaInfo implements Serializable {
    private static final long serialVersionUID = 1L;

    /* 流程类名称 */
    @JSONField(name = "class")
    private String clz;

    /* 连线的端口 */
    private String linkFromPortIdProperty;

    /* 被连线的端口 */
    private String linkToPortIdProperty;

    /* 节点数据 */
    private List<ProcessNodeInfo> nodeDataArray;

    /* 连线数据 */
    private List<ProcessLinkInfo> linkDataArray;

    /* 签收人（人员或部门） */
    private String currentNode;

    /* 会签节点 */
    private String isModified;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("clz", getClz())
                .append("linkFromPortIdProperty", getLinkFromPortIdProperty())
                .append("linkToPortIdProperty", getLinkToPortIdProperty())
                .append("nodeDataArray", getNodeDataArray())
                .append("linkDataArray", getLinkDataArray())
                .append("currentNode", getCurrentNode())
                .append("isModified", getIsModified())
                .toString();
    }

}
